home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12917 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Opening Pascal Structures in C - Need help
  5. Date: 3 Apr 1996 06:46:03 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ju2vbINN17g@keats.ugrad.cs.ubc.ca>
  8. References: <4jqbru$b70@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4jqbru$b70@newsbf02.news.aol.com>, Klyton <klyton@aol.com> wrote:
  12.  >How do you use the pascal keeyword correctly to open a file made in a
  13.  >pascal array/structure? I am attempting to open a user file from a bbs
  14.  >program that is in pascal.  Any info on the PASCAL keyword and use will be
  15.  >greatly appreciated... Thanx...
  16.  >klyton@aol.com
  17.  
  18. Load the file into a hex editor and look at the byte format. Then write a
  19. routine that will unpack it into a C structure. Alternately, you may want to
  20. take advantage of implementation-specific directives to get your compiler to
  21. declare a binary-compatible data structure. 
  22. -- 
  23.  
  24.